package com.learn.hibernatevalidator.chapter02.objectgraph;


import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @Valid 进行级联校验
 * @author: liyf
 * @create: 2024-12-21 22:47
 **/
@Data
public class Car {

    @NotNull
    @Valid
    private Person driver;

}
